#FROM 10.191.5.135/repo/nginx:latest
#COPY nginx.conf /etc/nginx/conf.d/default.conf
#COPY  ./dist /usr/share/nginx/html/purchase/

FROM 10.191.5.135/repo/nginx:latest


RUN mkdir -p /opt/purchase/
RUN mkdir -p /etc/nginx/logs/
RUN touch /etc/nginx/logs/error.log
COPY  ./dist /opt/purchase/
COPY ./nginx.conf /etc/nginx/nginx.conf

#容器开放的端口
EXPOSE 80
#指定docker容器时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Beijing' >/etc/timezone

# 脚本启动
#ENTRYPOINT ["sh","-c","nginx -s reload"]
